<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Eigen: CholmodSupport.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="eigendoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Eigen_Silly_Professor_64x64.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://eigen.tuxfamily.org">Eigen</a>
   &#160;<span id="projectnumber">3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('CholmodSupport_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CholmodSupport.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// This file is part of Eigen, a lightweight C++ template library</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// for linear algebra.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2008-2010 Gael Guennebaud &lt;gael.guennebaud@inria.fr&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This Source Code Form is subject to the terms of the Mozilla</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// Public License v. 2.0. If a copy of the MPL was not distributed</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef EIGEN_CHOLMODSUPPORT_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define EIGEN_CHOLMODSUPPORT_H</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;./InternalHeaderCheck.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceEigen.html">Eigen</a> {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar&gt; <span class="keyword">struct </span>cholmod_configure_matrix;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span>cholmod_configure_matrix&lt;double&gt; {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CholmodType&gt;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> run(CholmodType&amp; mat) {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    mat.xtype = CHOLMOD_REAL;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    mat.dtype = CHOLMOD_DOUBLE;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;};</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span>cholmod_configure_matrix&lt;std::complex&lt;double&gt; &gt; {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> CholmodType&gt;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> run(CholmodType&amp; mat) {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    mat.xtype = CHOLMOD_COMPLEX;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    mat.dtype = CHOLMOD_DOUBLE;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  }</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;};</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Other scalar types are not yet supported by Cholmod</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">// template&lt;&gt; struct cholmod_configure_matrix&lt;float&gt; {</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">//   template&lt;typename CholmodType&gt;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">//   static void run(CholmodType&amp; mat) {</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">//     mat.xtype = CHOLMOD_REAL;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">//     mat.dtype = CHOLMOD_SINGLE;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">//   }</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">// };</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">// template&lt;&gt; struct cholmod_configure_matrix&lt;std::complex&lt;float&gt; &gt; {</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">//   template&lt;typename CholmodType&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">//   static void run(CholmodType&amp; mat) {</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">//     mat.xtype = CHOLMOD_COMPLEX;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">//     mat.dtype = CHOLMOD_SINGLE;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">//   }</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">// };</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;} <span class="comment">// namespace internal</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar_, <span class="keywordtype">int</span> Options_, <span class="keyword">typename</span> StorageIndex_&gt;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">   60</a></span>&#160;cholmod_sparse <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<a class="code" href="classEigen_1_1Ref.html">Ref</a>&lt;<a class="code" href="classEigen_1_1SparseMatrix.html">SparseMatrix&lt;Scalar_,Options_,StorageIndex_&gt;</a> &gt; mat)</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  cholmod_sparse res;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  res.nzmax   = mat.nonZeros();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  res.nrow    = mat.rows();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  res.ncol    = mat.cols();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  res.p       = mat.outerIndexPtr();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  res.i       = mat.innerIndexPtr();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  res.x       = mat.valuePtr();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  res.z       = 0;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  res.sorted  = 1;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keywordflow">if</span>(mat.isCompressed())</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    res.packed  = 1;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    res.nz = 0;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    res.packed  = 0;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    res.nz = mat.innerNonZeroPtr();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  res.dtype   = 0;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  res.stype   = -1;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordflow">if</span> (internal::is_same&lt;StorageIndex_,int&gt;::value)</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    res.itype = CHOLMOD_INT;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  }</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (internal::is_same&lt;StorageIndex_,SuiteSparse_long&gt;::value)</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    res.itype = CHOLMOD_LONG;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    eigen_assert(<span class="keyword">false</span> &amp;&amp; <span class="stringliteral">&quot;Index type not supported yet&quot;</span>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="comment">// setup res.xtype</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  internal::cholmod_configure_matrix&lt;Scalar_&gt;::run(res);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  res.stype = 0;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar_, <span class="keywordtype">int</span> Options_, <span class="keyword">typename</span> Index_&gt;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">const</span> cholmod_sparse <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<span class="keyword">const</span> SparseMatrix&lt;Scalar_,Options_,Index_&gt;&amp; mat)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;{</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  cholmod_sparse res = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(Ref&lt;SparseMatrix&lt;Scalar_,Options_,Index_&gt; &gt;(mat.const_cast_derived()));</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar_, <span class="keywordtype">int</span> Options_, <span class="keyword">typename</span> Index_&gt;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keyword">const</span> cholmod_sparse <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<span class="keyword">const</span> SparseVector&lt;Scalar_,Options_,Index_&gt;&amp; mat)</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;{</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  cholmod_sparse res = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(Ref&lt;SparseMatrix&lt;Scalar_,Options_,Index_&gt; &gt;(mat.const_cast_derived()));</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar_, <span class="keywordtype">int</span> Options_, <span class="keyword">typename</span> Index_, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> UpLo&gt;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="namespaceEigen.html#af0a1848d39c84d0b57c1e7cb2f9b370e">  123</a></span>&#160;cholmod_sparse <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1SparseSelfAdjointView.html">SparseSelfAdjointView</a>&lt;<span class="keyword">const</span> <a class="code" href="classEigen_1_1SparseMatrix.html">SparseMatrix&lt;Scalar_,Options_,Index_&gt;</a>, UpLo&gt;&amp; mat)</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  cholmod_sparse res = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<a class="code" href="classEigen_1_1Ref.html">Ref</a>&lt;<a class="code" href="classEigen_1_1SparseMatrix.html">SparseMatrix&lt;Scalar_,Options_,Index_&gt;</a> &gt;(mat.matrix().const_cast_derived()));</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keywordflow">if</span>(UpLo==<a class="code" href="group__enums.html#gga39e3366ff5554d731e7dc8bb642f83cdafca2ccebb604f171656deb53e8c083c1">Upper</a>) res.stype =  1;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keywordflow">if</span>(UpLo==<a class="code" href="group__enums.html#gga39e3366ff5554d731e7dc8bb642f83cdaf581029282d421eee5aae14238c6f749">Lower</a>) res.stype = -1;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  <span class="comment">// swap stype for rowmajor matrices (only works for real matrices)</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  EIGEN_STATIC_ASSERT((Options_ &amp; <a class="code" href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">RowMajorBit</a>) == 0 || <a class="code" href="structEigen_1_1NumTraits.html">NumTraits&lt;Scalar_&gt;::IsComplex</a> == 0, THIS_METHOD_IS_ONLY_FOR_COLUMN_MAJOR_MATRICES);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  <span class="keywordflow">if</span>(Options_ &amp; <a class="code" href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">RowMajorBit</a>) res.stype *=-1;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="namespaceEigen.html#a92fe7b595099051fa1d1c443641a6de3">  139</a></span>&#160;cholmod_dense <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(<a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;</a>&amp; mat)</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;{</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  EIGEN_STATIC_ASSERT((internal::traits&lt;Derived&gt;::Flags&amp;<a class="code" href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">RowMajorBit</a>)==0,THIS_METHOD_IS_ONLY_FOR_COLUMN_MAJOR_MATRICES);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">typename</span> Derived::Scalar Scalar;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  cholmod_dense res;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  res.nrow   = mat.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#ac22eb0695d00edd7d4a3b2d0a98b81c2">rows</a>();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  res.ncol   = mat.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a2d768a9877f5f69f49432d447b552bfe">cols</a>();</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  res.nzmax  = res.nrow * res.ncol;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  res.d      = Derived::IsVectorAtCompileTime ? mat.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a1fbabe7f12bcbfba3b9a448b1f5e46fa">derived</a>().size() : mat.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a1fbabe7f12bcbfba3b9a448b1f5e46fa">derived</a>().outerStride();</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  res.x      = (<span class="keywordtype">void</span>*)(mat.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a1fbabe7f12bcbfba3b9a448b1f5e46fa">derived</a>().data());</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  res.z      = 0;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  internal::cholmod_configure_matrix&lt;Scalar&gt;::run(res);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar, <span class="keywordtype">int</span> Flags, <span class="keyword">typename</span> StorageIndex&gt;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="namespaceEigen.html#ada12cf6e1ffe8c110b175ed0e644b000">  160</a></span>&#160;<a class="code" href="classEigen_1_1Map.html">Map&lt;SparseMatrix&lt;Scalar,Flags,StorageIndex&gt;</a> &gt; <a class="code" href="namespaceEigen.html#ada12cf6e1ffe8c110b175ed0e644b000">viewAsEigen</a>(cholmod_sparse&amp; cm)</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;{</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1Map.html">Map&lt;SparseMatrix&lt;Scalar,Flags,StorageIndex&gt;</a> &gt;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;         (cm.nrow, cm.ncol, <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(cm.p)[cm.ncol],</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;          <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(cm.p), <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(cm.i),<span class="keyword">static_cast&lt;</span>Scalar*<span class="keyword">&gt;</span>(cm.x) );</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;}</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment">// template specializations for int and long that call the correct cholmod method</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#define EIGEN_CHOLMOD_SPECIALIZE0(ret, name) \</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor">    template&lt;typename StorageIndex_&gt; inline ret cm_ ## name       (cholmod_common &amp;Common) { return cholmod_ ## name   (&amp;Common); } \</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">    template&lt;&gt;                       inline ret cm_ ## name&lt;SuiteSparse_long&gt; (cholmod_common &amp;Common) { return cholmod_l_ ## name (&amp;Common); }</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">#define EIGEN_CHOLMOD_SPECIALIZE1(ret, name, t1, a1) \</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">    template&lt;typename StorageIndex_&gt; inline ret cm_ ## name       (t1&amp; a1, cholmod_common &amp;Common) { return cholmod_ ## name   (&amp;a1, &amp;Common); } \</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">    template&lt;&gt;                       inline ret cm_ ## name&lt;SuiteSparse_long&gt; (t1&amp; a1, cholmod_common &amp;Common) { return cholmod_l_ ## name (&amp;a1, &amp;Common); }</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;EIGEN_CHOLMOD_SPECIALIZE0(<span class="keywordtype">int</span>, start)</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;EIGEN_CHOLMOD_SPECIALIZE0(<span class="keywordtype">int</span>, finish)</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;EIGEN_CHOLMOD_SPECIALIZE1(<span class="keywordtype">int</span>, free_factor, cholmod_factor*, L)</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;EIGEN_CHOLMOD_SPECIALIZE1(<span class="keywordtype">int</span>, free_dense,  cholmod_dense*,  X)</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;EIGEN_CHOLMOD_SPECIALIZE1(<span class="keywordtype">int</span>, free_sparse, cholmod_sparse*, A)</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;EIGEN_CHOLMOD_SPECIALIZE1(cholmod_factor*, analyze, cholmod_sparse, A)</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> StorageIndex_&gt; <span class="keyword">inline</span> cholmod_dense*  cm_solve         (<span class="keywordtype">int</span> sys, cholmod_factor&amp; L, cholmod_dense&amp;  B, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_solve     (sys, &amp;L, &amp;B, &amp;Common); }</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">template</span>&lt;&gt;                       <span class="keyword">inline</span> cholmod_dense*  cm_solve&lt;SuiteSparse_long&gt;   (<span class="keywordtype">int</span> sys, cholmod_factor&amp; L, cholmod_dense&amp;  B, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_l_solve   (sys, &amp;L, &amp;B, &amp;Common); }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> StorageIndex_&gt; <span class="keyword">inline</span> cholmod_sparse* cm_spsolve       (<span class="keywordtype">int</span> sys, cholmod_factor&amp; L, cholmod_sparse&amp; B, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_spsolve   (sys, &amp;L, &amp;B, &amp;Common); }</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keyword">template</span>&lt;&gt;                       <span class="keyword">inline</span> cholmod_sparse* cm_spsolve&lt;SuiteSparse_long&gt; (<span class="keywordtype">int</span> sys, cholmod_factor&amp; L, cholmod_sparse&amp; B, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_l_spsolve (sys, &amp;L, &amp;B, &amp;Common); }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> StorageIndex_&gt;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">int</span>  cm_factorize_p       (cholmod_sparse*  A, <span class="keywordtype">double</span> beta[2], StorageIndex_* fset, std::size_t fsize, cholmod_factor* L, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_factorize_p   (A, beta, fset, fsize, L, &amp;Common); }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="keyword">template</span>&lt;&gt;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">int</span>  cm_factorize_p&lt;SuiteSparse_long&gt; (cholmod_sparse*  A, <span class="keywordtype">double</span> beta[2], SuiteSparse_long* fset,          std::size_t fsize, cholmod_factor* L, cholmod_common &amp;Common) { <span class="keywordflow">return</span> cholmod_l_factorize_p (A, beta, fset, fsize, L, &amp;Common); }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#undef EIGEN_CHOLMOD_SPECIALIZE0</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">#undef EIGEN_CHOLMOD_SPECIALIZE1</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}  <span class="comment">// namespace internal</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="keyword">enum</span> CholmodMode {</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  CholmodAuto, CholmodSimplicialLLt, CholmodSupernodalLLt, CholmodLDLt</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;};</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType_, <span class="keywordtype">int</span> UpLo_, <span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html">  216</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a> : <span class="keyword">public</span> <a class="code" href="classEigen_1_1SparseSolverBase.html">SparseSolverBase</a>&lt;Derived&gt;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;{</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1SparseSolverBase.html">SparseSolverBase&lt;Derived&gt;</a> <a class="code" href="classEigen_1_1SparseSolverBase.html">Base</a>;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keyword">using</span> Base::derived;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keyword">using</span> Base::m_isInitialized;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keyword">typedef</span> MatrixType_ MatrixType;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keyword">enum</span> { UpLo = UpLo_ };</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> MatrixType::Scalar Scalar;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> MatrixType::RealScalar RealScalar;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keyword">typedef</span> MatrixType CholMatrixType;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> MatrixType::StorageIndex StorageIndex;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;      ColsAtCompileTime = MatrixType::ColsAtCompileTime,</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;      MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    };</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>()</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;      : m_cholmodFactor(0), m_info(<a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a>), m_factorizationIsOk(<span class="keyword">false</span>), m_analysisIsOk(<span class="keyword">false</span>)</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    {</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;      EIGEN_STATIC_ASSERT((internal::is_same&lt;double,RealScalar&gt;::value), CHOLMOD_SUPPORTS_DOUBLE_PRECISION_ONLY);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;      m_shiftOffset[0] = m_shiftOffset[1] = 0.0;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;      internal::cm_start&lt;StorageIndex&gt;(m_cholmod);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    }</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>(<span class="keyword">const</span> MatrixType&amp; matrix)</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;      : m_cholmodFactor(0), m_info(<a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a>), m_factorizationIsOk(<span class="keyword">false</span>), m_analysisIsOk(<span class="keyword">false</span>)</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;      EIGEN_STATIC_ASSERT((internal::is_same&lt;double,RealScalar&gt;::value), CHOLMOD_SUPPORTS_DOUBLE_PRECISION_ONLY);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;      m_shiftOffset[0] = m_shiftOffset[1] = 0.0;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;      internal::cm_start&lt;StorageIndex&gt;(m_cholmod);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;      <a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(matrix);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    ~<a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>()</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;      <span class="keywordflow">if</span>(m_cholmodFactor)</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        internal::cm_free_factor&lt;StorageIndex&gt;(m_cholmodFactor, m_cholmod);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;      internal::cm_finish&lt;StorageIndex&gt;(m_cholmod);</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    }</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keyword">inline</span> StorageIndex cols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> internal::convert_index&lt;StorageIndex, Index&gt;(m_cholmodFactor-&gt;n); }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keyword">inline</span> StorageIndex rows()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> internal::convert_index&lt;StorageIndex, Index&gt;(m_cholmodFactor-&gt;n); }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a1e372842975eec7c20fc40142576f9d6">  268</a></span>&#160;    <a class="code" href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">ComputationInfo</a> <a class="code" href="classEigen_1_1CholmodBase.html#a1e372842975eec7c20fc40142576f9d6">info</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;      eigen_assert(m_isInitialized &amp;&amp; <span class="stringliteral">&quot;Decomposition is not initialized.&quot;</span>);</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;      <span class="keywordflow">return</span> m_info;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">  275</a></span>&#160;    Derived&amp; <a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(<span class="keyword">const</span> MatrixType&amp; matrix)</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    {</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;      <a class="code" href="classEigen_1_1CholmodBase.html#afaef6b0ac26a75ad83dd445c77bc4892">analyzePattern</a>(matrix);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;      <a class="code" href="classEigen_1_1CholmodBase.html#a0a0f049c294dc9272346bc5ad392226c">factorize</a>(matrix);</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;      <span class="keywordflow">return</span> derived();</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    }</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#afaef6b0ac26a75ad83dd445c77bc4892">  288</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classEigen_1_1CholmodBase.html#afaef6b0ac26a75ad83dd445c77bc4892">analyzePattern</a>(<span class="keyword">const</span> MatrixType&amp; matrix)</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;      <span class="keywordflow">if</span>(m_cholmodFactor)</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;      {</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        internal::cm_free_factor&lt;StorageIndex&gt;(m_cholmodFactor, m_cholmod);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        m_cholmodFactor = 0;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;      }</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;      cholmod_sparse A = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(matrix.template selfadjointView&lt;UpLo&gt;());</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;      m_cholmodFactor = internal::cm_analyze&lt;StorageIndex&gt;(A, m_cholmod);</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;      this-&gt;m_isInitialized = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;      this-&gt;m_info = <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a>;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;      m_analysisIsOk = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;      m_factorizationIsOk = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    }</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a0a0f049c294dc9272346bc5ad392226c">  310</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classEigen_1_1CholmodBase.html#a0a0f049c294dc9272346bc5ad392226c">factorize</a>(<span class="keyword">const</span> MatrixType&amp; matrix)</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;      eigen_assert(m_analysisIsOk &amp;&amp; <span class="stringliteral">&quot;You must first call analyzePattern()&quot;</span>);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;      cholmod_sparse A = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(matrix.template selfadjointView&lt;UpLo&gt;());</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;      internal::cm_factorize_p&lt;StorageIndex&gt;(&amp;A, m_shiftOffset, 0, 0, m_cholmodFactor, m_cholmod);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;      <span class="comment">// If the factorization failed, minor is the column at which it did. On success minor == n.</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;      this-&gt;m_info = (m_cholmodFactor-&gt;minor == m_cholmodFactor-&gt;n ? <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a> : <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea1c6e20706575a629b27a105f07f1883b">NumericalIssue</a>);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;      m_factorizationIsOk = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    }</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a2fe05e78f3d9502669eb77431b36de24">  323</a></span>&#160;    cholmod_common&amp; <a class="code" href="classEigen_1_1CholmodBase.html#a2fe05e78f3d9502669eb77431b36de24">cholmod</a>() { <span class="keywordflow">return</span> m_cholmod; }</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;<span class="preprocessor">    #ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Rhs,<span class="keyword">typename</span> Dest&gt;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keywordtype">void</span> _solve_impl(<span class="keyword">const</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Rhs&gt;</a> &amp;b, <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Dest&gt;</a> &amp;dest)<span class="keyword"> const</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;      eigen_assert(m_factorizationIsOk &amp;&amp; <span class="stringliteral">&quot;The decomposition is not in a valid state for solving, you must first call either compute() or symbolic()/numeric()&quot;</span>);</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;      <span class="keyword">const</span> <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size = m_cholmodFactor-&gt;n;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;      EIGEN_UNUSED_VARIABLE(size);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;      eigen_assert(size==b.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#ac22eb0695d00edd7d4a3b2d0a98b81c2">rows</a>());</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;      <span class="comment">// Cholmod needs column-major storage without inner-stride, which corresponds to the default behavior of Ref.</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;      <a class="code" href="classEigen_1_1Ref.html">Ref&lt;const Matrix&lt;typename Rhs::Scalar,Dynamic,Dynamic,ColMajor&gt;</a> &gt; b_ref(b.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a1fbabe7f12bcbfba3b9a448b1f5e46fa">derived</a>());</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;      cholmod_dense b_cd = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(b_ref);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;      cholmod_dense* x_cd = internal::cm_solve&lt;StorageIndex&gt;(CHOLMOD_A, *m_cholmodFactor, b_cd, m_cholmod);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;      <span class="keywordflow">if</span>(!x_cd)</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;      {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        this-&gt;m_info = <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea1c6e20706575a629b27a105f07f1883b">NumericalIssue</a>;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;      }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;      <span class="comment">// TODO optimize this copy by swapping when possible (be careful with alignment, etc.)</span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;      <span class="comment">// NOTE Actually, the copy can be avoided by calling cholmod_solve2 instead of cholmod_solve</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;      dest = <a class="code" href="classEigen_1_1PlainObjectBase.html#aaf9fcc07dc13f89cf71d4a4e2b220d24">Matrix&lt;Scalar,Dest::RowsAtCompileTime,Dest::ColsAtCompileTime&gt;::Map</a>(<span class="keyword">reinterpret_cast&lt;</span>Scalar*<span class="keyword">&gt;</span>(x_cd-&gt;x),b.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#ac22eb0695d00edd7d4a3b2d0a98b81c2">rows</a>(),b.<a class="code" href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a2d768a9877f5f69f49432d447b552bfe">cols</a>());</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;      internal::cm_free_dense&lt;StorageIndex&gt;(x_cd, m_cholmod);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> RhsDerived, <span class="keyword">typename</span> DestDerived&gt;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordtype">void</span> _solve_impl(<span class="keyword">const</span> SparseMatrixBase&lt;RhsDerived&gt; &amp;b, SparseMatrixBase&lt;DestDerived&gt; &amp;dest)<span class="keyword"> const</span></div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;      eigen_assert(m_factorizationIsOk &amp;&amp; <span class="stringliteral">&quot;The decomposition is not in a valid state for solving, you must first call either compute() or symbolic()/numeric()&quot;</span>);</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;      <span class="keyword">const</span> <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size = m_cholmodFactor-&gt;n;</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;      EIGEN_UNUSED_VARIABLE(size);</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;      eigen_assert(size==b.rows());</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160; </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;      <span class="comment">// note: cs stands for Cholmod Sparse</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;      Ref&lt;SparseMatrix&lt;typename RhsDerived::Scalar,ColMajor,typename RhsDerived::StorageIndex&gt; &gt; b_ref(b.const_cast_derived());</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;      cholmod_sparse b_cs = <a class="code" href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">viewAsCholmod</a>(b_ref);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;      cholmod_sparse* x_cs = internal::cm_spsolve&lt;StorageIndex&gt;(CHOLMOD_A, *m_cholmodFactor, b_cs, m_cholmod);</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;      <span class="keywordflow">if</span>(!x_cs)</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;      {</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        this-&gt;m_info = <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea1c6e20706575a629b27a105f07f1883b">NumericalIssue</a>;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;      }</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      <span class="comment">// TODO optimize this copy by swapping when possible (be careful with alignment, etc.)</span></div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      <span class="comment">// NOTE cholmod_spsolve in fact just calls the dense solver for blocks of 4 columns at a time (similar to Eigen&#39;s sparse solver)</span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;      dest.derived() = viewAsEigen&lt;typename DestDerived::Scalar,ColMajor,typename DestDerived::StorageIndex&gt;(*x_cs);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;      internal::cm_free_sparse&lt;StorageIndex&gt;(x_cs, m_cholmod);</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="preprocessor">    #endif </span><span class="comment">// EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160; </div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#ac6c4872290c6eac877c9c8fdb105f97c">  386</a></span>&#160;    Derived&amp; <a class="code" href="classEigen_1_1CholmodBase.html#ac6c4872290c6eac877c9c8fdb105f97c">setShift</a>(<span class="keyword">const</span> RealScalar&amp; offset)</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    {</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;      m_shiftOffset[0] = double(offset);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;      <span class="keywordflow">return</span> derived();</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    }</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; </div>
<div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a315bc06aca534380e1e40e0492537a3c">  393</a></span>&#160;    Scalar <a class="code" href="classEigen_1_1CholmodBase.html#a315bc06aca534380e1e40e0492537a3c">determinant</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;      <span class="keyword">using</span> std::exp;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="namespaceEigen.html#ae491aecf7dab66ac7e11008c5766694d">exp</a>(<a class="code" href="classEigen_1_1CholmodBase.html#a74a0d57f33425bff622db5591e6b32b8">logDeterminant</a>());</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    }</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodBase.html#a74a0d57f33425bff622db5591e6b32b8">  400</a></span>&#160;    Scalar <a class="code" href="classEigen_1_1CholmodBase.html#a74a0d57f33425bff622db5591e6b32b8">logDeterminant</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;      <span class="keyword">using</span> std::log;</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;      <span class="keyword">using</span> numext::real;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;      eigen_assert(m_factorizationIsOk &amp;&amp; <span class="stringliteral">&quot;The decomposition is not in a valid state for solving, you must first call either compute() or symbolic()/numeric()&quot;</span>);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160; </div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      RealScalar logDet = 0;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;      Scalar *x = <span class="keyword">static_cast&lt;</span>Scalar*<span class="keyword">&gt;</span>(m_cholmodFactor-&gt;x);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;      <span class="keywordflow">if</span> (m_cholmodFactor-&gt;is_super)</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;      {</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        <span class="comment">// Supernodal factorization stored as a packed list of dense column-major blocs,</span></div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        <span class="comment">// as described by the following structure:</span></div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        <span class="comment">// super[k] == index of the first column of the j-th super node</span></div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        StorageIndex *super = <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(m_cholmodFactor-&gt;super);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="comment">// pi[k] == offset to the description of row indices</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        StorageIndex *pi = <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(m_cholmodFactor-&gt;pi);</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="comment">// px[k] == offset to the respective dense block</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        StorageIndex *px = <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(m_cholmodFactor-&gt;px);</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> nb_super_nodes = m_cholmodFactor-&gt;nsuper;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> k=0; k &lt; nb_super_nodes; ++k)</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        {</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;          StorageIndex ncols = super[k + 1] - super[k];</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;          StorageIndex nrows = pi[k + 1] - pi[k];</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160; </div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;          <a class="code" href="classEigen_1_1Map.html">Map&lt;const Array&lt;Scalar,1,Dynamic&gt;</a>, 0, <a class="code" href="classEigen_1_1InnerStride.html">InnerStride&lt;&gt;</a> &gt; sk(x + px[k], ncols, <a class="code" href="classEigen_1_1InnerStride.html">InnerStride&lt;&gt;</a>(nrows+1));</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;          logDet += sk.real().log().sum();</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;      }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;      {</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;        <span class="comment">// Simplicial factorization stored as standard CSC matrix.</span></div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        StorageIndex *p = <span class="keyword">static_cast&lt;</span>StorageIndex*<span class="keyword">&gt;</span>(m_cholmodFactor-&gt;p);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;        <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size = m_cholmodFactor-&gt;n;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> k=0; k&lt;size; ++k)</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;          logDet += <a class="code" href="namespaceEigen.html#ae8bb75ba4f5f30a7571146dbfa653c6d">log</a>(<a class="code" href="namespaceEigen.html#ac74dc920119b1eba45e9218d9f402afc">real</a>( x[p[k]] ));</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;      }</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;      <span class="keywordflow">if</span> (m_cholmodFactor-&gt;is_ll)</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        logDet *= 2.0;</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;      <span class="keywordflow">return</span> logDet;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    }</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160; </div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Stream&gt;</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <span class="keywordtype">void</span> dumpMemory(Stream&amp; <span class="comment">/*s*/</span>)</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    {}</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; </div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <span class="keyword">mutable</span> cholmod_common m_cholmod;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    cholmod_factor* m_cholmodFactor;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    <span class="keywordtype">double</span> m_shiftOffset[2];</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    <span class="keyword">mutable</span> <a class="code" href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">ComputationInfo</a> m_info;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    <span class="keywordtype">int</span> m_factorizationIsOk;</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordtype">int</span> m_analysisIsOk;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;};</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160; </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType_, <span class="keywordtype">int</span> UpLo_ = Lower&gt;</div>
<div class="line"><a name="l00479"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodSimplicialLLT.html">  479</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CholmodSimplicialLLT.html">CholmodSimplicialLLT</a> : <span class="keyword">public</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>&lt;MatrixType_, UpLo_, CholmodSimplicialLLT&lt;MatrixType_, UpLo_&gt; &gt;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;{</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase&lt;MatrixType_, UpLo_, CholmodSimplicialLLT&gt;</a> <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <span class="keyword">using</span> Base::m_cholmod;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160; </div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160; </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    <span class="keyword">typedef</span> MatrixType_ MatrixType;</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160; </div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <a class="code" href="classEigen_1_1CholmodSimplicialLLT.html">CholmodSimplicialLLT</a>() : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>() { init(); }</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160; </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <a class="code" href="classEigen_1_1CholmodSimplicialLLT.html">CholmodSimplicialLLT</a>(<span class="keyword">const</span> MatrixType&amp; matrix) : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>()</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    {</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;      init();</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;      this-&gt;<a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(matrix);</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    }</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160; </div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    ~<a class="code" href="classEigen_1_1CholmodSimplicialLLT.html">CholmodSimplicialLLT</a>() {}</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="keywordtype">void</span> init()</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    {</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;      m_cholmod.final_asis = 0;</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;      m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;      m_cholmod.final_ll = 1;</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    }</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;};</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160; </div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160; </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType_, <span class="keywordtype">int</span> UpLo_ = Lower&gt;</div>
<div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodSimplicialLDLT.html">  530</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CholmodSimplicialLDLT.html">CholmodSimplicialLDLT</a> : <span class="keyword">public</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>&lt;MatrixType_, UpLo_, CholmodSimplicialLDLT&lt;MatrixType_, UpLo_&gt; &gt;</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;{</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase&lt;MatrixType_, UpLo_, CholmodSimplicialLDLT&gt;</a> <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    <span class="keyword">using</span> Base::m_cholmod;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160; </div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="keyword">typedef</span> MatrixType_ MatrixType;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160; </div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    <a class="code" href="classEigen_1_1CholmodSimplicialLDLT.html">CholmodSimplicialLDLT</a>() : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>() { init(); }</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160; </div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    <a class="code" href="classEigen_1_1CholmodSimplicialLDLT.html">CholmodSimplicialLDLT</a>(<span class="keyword">const</span> MatrixType&amp; matrix) : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>()</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    {</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;      init();</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;      this-&gt;<a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(matrix);</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    }</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160; </div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;    ~<a class="code" href="classEigen_1_1CholmodSimplicialLDLT.html">CholmodSimplicialLDLT</a>() {}</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    <span class="keywordtype">void</span> init()</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    {</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;      m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;      m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    }</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;};</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160; </div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType_, <span class="keywordtype">int</span> UpLo_ = Lower&gt;</div>
<div class="line"><a name="l00579"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodSupernodalLLT.html">  579</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CholmodSupernodalLLT.html">CholmodSupernodalLLT</a> : <span class="keyword">public</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>&lt;MatrixType_, UpLo_, CholmodSupernodalLLT&lt;MatrixType_, UpLo_&gt; &gt;</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;{</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase&lt;MatrixType_, UpLo_, CholmodSupernodalLLT&gt;</a> <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <span class="keyword">using</span> Base::m_cholmod;</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160; </div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160; </div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keyword">typedef</span> MatrixType_ MatrixType;</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    <a class="code" href="classEigen_1_1CholmodSupernodalLLT.html">CholmodSupernodalLLT</a>() : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>() { init(); }</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160; </div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <a class="code" href="classEigen_1_1CholmodSupernodalLLT.html">CholmodSupernodalLLT</a>(<span class="keyword">const</span> MatrixType&amp; matrix) : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>()</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    {</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;      init();</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;      this-&gt;<a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(matrix);</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    }</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160; </div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    ~<a class="code" href="classEigen_1_1CholmodSupernodalLLT.html">CholmodSupernodalLLT</a>() {}</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="keywordtype">void</span> init()</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    {</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;      m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;      m_cholmod.supernodal = CHOLMOD_SUPERNODAL;</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    }</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;};</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160; </div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType_, <span class="keywordtype">int</span> UpLo_ = Lower&gt;</div>
<div class="line"><a name="l00630"></a><span class="lineno"><a class="line" href="classEigen_1_1CholmodDecomposition.html">  630</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CholmodDecomposition.html">CholmodDecomposition</a> : <span class="keyword">public</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase</a>&lt;MatrixType_, UpLo_, CholmodDecomposition&lt;MatrixType_, UpLo_&gt; &gt;</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;{</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1CholmodBase.html">CholmodBase&lt;MatrixType_, UpLo_, CholmodDecomposition&gt;</a> <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>;</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    <span class="keyword">using</span> Base::m_cholmod;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160; </div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160; </div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <span class="keyword">typedef</span> MatrixType_ MatrixType;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160; </div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    <a class="code" href="classEigen_1_1CholmodDecomposition.html">CholmodDecomposition</a>() : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>() { init(); }</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160; </div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <a class="code" href="classEigen_1_1CholmodDecomposition.html">CholmodDecomposition</a>(<span class="keyword">const</span> MatrixType&amp; matrix) : <a class="code" href="classEigen_1_1CholmodBase.html">Base</a>()</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    {</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;      init();</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;      this-&gt;<a class="code" href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">compute</a>(matrix);</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    }</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160; </div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    ~<a class="code" href="classEigen_1_1CholmodDecomposition.html">CholmodDecomposition</a>() {}</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160; </div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    <span class="keywordtype">void</span> setMode(CholmodMode mode)</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;    {</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;      <span class="keywordflow">switch</span>(mode)</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;      {</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;        <span class="keywordflow">case</span> CholmodAuto:</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;          m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;          m_cholmod.supernodal = CHOLMOD_AUTO;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;        <span class="keywordflow">case</span> CholmodSimplicialLLt:</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;          m_cholmod.final_asis = 0;</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;          m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;          m_cholmod.final_ll = 1;</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;        <span class="keywordflow">case</span> CholmodSupernodalLLt:</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;          m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;          m_cholmod.supernodal = CHOLMOD_SUPERNODAL;</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;        <span class="keywordflow">case</span> CholmodLDLt:</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;          m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;          m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;      }</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    }</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    <span class="keywordtype">void</span> init()</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;    {</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;      m_cholmod.final_asis = 1;</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;      m_cholmod.supernodal = CHOLMOD_AUTO;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;    }</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;};</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160; </div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;} <span class="comment">// end namespace Eigen</span></div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160; </div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// EIGEN_CHOLMODSUPPORT_H</span></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html"><div class="ttname"><a href="classEigen_1_1CholmodBase.html">Eigen::CholmodBase</a></div><div class="ttdoc">The base class for the direct Cholesky factorization of Cholmod.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:217</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a0a0f049c294dc9272346bc5ad392226c"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a0a0f049c294dc9272346bc5ad392226c">Eigen::CholmodBase::factorize</a></div><div class="ttdeci">void factorize(const MatrixType &amp;matrix)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:310</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a1e372842975eec7c20fc40142576f9d6"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a1e372842975eec7c20fc40142576f9d6">Eigen::CholmodBase::info</a></div><div class="ttdeci">ComputationInfo info() const</div><div class="ttdoc">Reports whether previous computation was successful.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:268</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a2fe05e78f3d9502669eb77431b36de24"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a2fe05e78f3d9502669eb77431b36de24">Eigen::CholmodBase::cholmod</a></div><div class="ttdeci">cholmod_common &amp; cholmod()</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:323</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a315bc06aca534380e1e40e0492537a3c"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a315bc06aca534380e1e40e0492537a3c">Eigen::CholmodBase::determinant</a></div><div class="ttdeci">Scalar determinant() const</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:393</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a73c65accbedee9ccdf36f89de01149c1"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a73c65accbedee9ccdf36f89de01149c1">Eigen::CholmodBase::compute</a></div><div class="ttdeci">Derived &amp; compute(const MatrixType &amp;matrix)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:275</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_a74a0d57f33425bff622db5591e6b32b8"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#a74a0d57f33425bff622db5591e6b32b8">Eigen::CholmodBase::logDeterminant</a></div><div class="ttdeci">Scalar logDeterminant() const</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:400</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_ac6c4872290c6eac877c9c8fdb105f97c"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#ac6c4872290c6eac877c9c8fdb105f97c">Eigen::CholmodBase::setShift</a></div><div class="ttdeci">Derived &amp; setShift(const RealScalar &amp;offset)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:386</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodBase_html_afaef6b0ac26a75ad83dd445c77bc4892"><div class="ttname"><a href="classEigen_1_1CholmodBase.html#afaef6b0ac26a75ad83dd445c77bc4892">Eigen::CholmodBase::analyzePattern</a></div><div class="ttdeci">void analyzePattern(const MatrixType &amp;matrix)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:288</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodDecomposition_html"><div class="ttname"><a href="classEigen_1_1CholmodDecomposition.html">Eigen::CholmodDecomposition</a></div><div class="ttdoc">A general Cholesky factorization and solver based on Cholmod.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:631</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodSimplicialLDLT_html"><div class="ttname"><a href="classEigen_1_1CholmodSimplicialLDLT.html">Eigen::CholmodSimplicialLDLT</a></div><div class="ttdoc">A simplicial direct Cholesky (LDLT) factorization and solver based on Cholmod.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:531</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodSimplicialLLT_html"><div class="ttname"><a href="classEigen_1_1CholmodSimplicialLLT.html">Eigen::CholmodSimplicialLLT</a></div><div class="ttdoc">A simplicial direct Cholesky (LLT) factorization and solver based on Cholmod.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:480</div></div>
<div class="ttc" id="aclassEigen_1_1CholmodSupernodalLLT_html"><div class="ttname"><a href="classEigen_1_1CholmodSupernodalLLT.html">Eigen::CholmodSupernodalLLT</a></div><div class="ttdoc">A supernodal Cholesky (LLT) factorization and solver based on Cholmod.</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:580</div></div>
<div class="ttc" id="aclassEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4_html_a1fbabe7f12bcbfba3b9a448b1f5e46fa"><div class="ttname"><a href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a1fbabe7f12bcbfba3b9a448b1f5e46fa">Eigen::DenseCoeffsBase&lt; Derived, DirectWriteAccessors &gt;::derived</a></div><div class="ttdeci">Derived &amp; derived()</div><div class="ttdef"><b>Definition:</b> EigenBase.h:48</div></div>
<div class="ttc" id="aclassEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4_html_a2d768a9877f5f69f49432d447b552bfe"><div class="ttname"><a href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#a2d768a9877f5f69f49432d447b552bfe">Eigen::DenseCoeffsBase&lt; Derived, DirectWriteAccessors &gt;::cols</a></div><div class="ttdeci">EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT</div><div class="ttdef"><b>Definition:</b> EigenBase.h:65</div></div>
<div class="ttc" id="aclassEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4_html_ac22eb0695d00edd7d4a3b2d0a98b81c2"><div class="ttname"><a href="classEigen_1_1DenseCoeffsBase_3_01Derived_00_01DirectWriteAccessors_01_4.html#ac22eb0695d00edd7d4a3b2d0a98b81c2">Eigen::DenseCoeffsBase&lt; Derived, DirectWriteAccessors &gt;::rows</a></div><div class="ttdeci">EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT</div><div class="ttdef"><b>Definition:</b> EigenBase.h:62</div></div>
<div class="ttc" id="aclassEigen_1_1InnerStride_html"><div class="ttname"><a href="classEigen_1_1InnerStride.html">Eigen::InnerStride</a></div><div class="ttdoc">Convenience specialization of Stride to specify only an inner stride See class Map for some examples.</div><div class="ttdef"><b>Definition:</b> Stride.h:102</div></div>
<div class="ttc" id="aclassEigen_1_1Map_html"><div class="ttname"><a href="classEigen_1_1Map.html">Eigen::Map</a></div><div class="ttdoc">A matrix or vector expression mapping an existing array of data.</div><div class="ttdef"><b>Definition:</b> Map.h:98</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html"><div class="ttname"><a href="classEigen_1_1MatrixBase.html">Eigen::MatrixBase</a></div><div class="ttdoc">Base class for all dense matrices, vectors, and expressions.</div><div class="ttdef"><b>Definition:</b> MatrixBase.h:52</div></div>
<div class="ttc" id="aclassEigen_1_1PlainObjectBase_html_aaf9fcc07dc13f89cf71d4a4e2b220d24"><div class="ttname"><a href="classEigen_1_1PlainObjectBase.html#aaf9fcc07dc13f89cf71d4a4e2b220d24">Eigen::PlainObjectBase&lt; Matrix&lt; Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ &gt; &gt;::Map</a></div><div class="ttdeci">static ConstMapType Map(const Scalar *data)</div><div class="ttdef"><b>Definition:</b> PlainObjectBase.h:642</div></div>
<div class="ttc" id="aclassEigen_1_1Ref_html"><div class="ttname"><a href="classEigen_1_1Ref.html">Eigen::Ref</a></div><div class="ttdoc">A matrix or vector expression mapping an existing expression.</div><div class="ttdef"><b>Definition:</b> Ref.h:285</div></div>
<div class="ttc" id="aclassEigen_1_1SparseMatrix_html"><div class="ttname"><a href="classEigen_1_1SparseMatrix.html">Eigen::SparseMatrix</a></div><div class="ttdoc">A versatible sparse matrix representation.</div><div class="ttdef"><b>Definition:</b> SparseMatrix.h:100</div></div>
<div class="ttc" id="aclassEigen_1_1SparseSelfAdjointView_html"><div class="ttname"><a href="classEigen_1_1SparseSelfAdjointView.html">Eigen::SparseSelfAdjointView</a></div><div class="ttdoc">Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.</div><div class="ttdef"><b>Definition:</b> SparseSelfAdjointView.h:47</div></div>
<div class="ttc" id="aclassEigen_1_1SparseSolverBase_html"><div class="ttname"><a href="classEigen_1_1SparseSolverBase.html">Eigen::SparseSolverBase</a></div><div class="ttdoc">A base class for sparse solvers.</div><div class="ttdef"><b>Definition:</b> SparseSolverBase.h:70</div></div>
<div class="ttc" id="agroup__enums_html_ga85fad7b87587764e5cf6b513a9e0ee5e"><div class="ttname"><a href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">Eigen::ComputationInfo</a></div><div class="ttdeci">ComputationInfo</div><div class="ttdef"><b>Definition:</b> Constants.h:442</div></div>
<div class="ttc" id="agroup__enums_html_gga39e3366ff5554d731e7dc8bb642f83cdaf581029282d421eee5aae14238c6f749"><div class="ttname"><a href="group__enums.html#gga39e3366ff5554d731e7dc8bb642f83cdaf581029282d421eee5aae14238c6f749">Eigen::Lower</a></div><div class="ttdeci">@ Lower</div><div class="ttdef"><b>Definition:</b> Constants.h:211</div></div>
<div class="ttc" id="agroup__enums_html_gga39e3366ff5554d731e7dc8bb642f83cdafca2ccebb604f171656deb53e8c083c1"><div class="ttname"><a href="group__enums.html#gga39e3366ff5554d731e7dc8bb642f83cdafca2ccebb604f171656deb53e8c083c1">Eigen::Upper</a></div><div class="ttdeci">@ Upper</div><div class="ttdef"><b>Definition:</b> Constants.h:213</div></div>
<div class="ttc" id="agroup__enums_html_gga85fad7b87587764e5cf6b513a9e0ee5ea1c6e20706575a629b27a105f07f1883b"><div class="ttname"><a href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea1c6e20706575a629b27a105f07f1883b">Eigen::NumericalIssue</a></div><div class="ttdeci">@ NumericalIssue</div><div class="ttdef"><b>Definition:</b> Constants.h:446</div></div>
<div class="ttc" id="agroup__enums_html_gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf"><div class="ttname"><a href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Eigen::Success</a></div><div class="ttdeci">@ Success</div><div class="ttdef"><b>Definition:</b> Constants.h:444</div></div>
<div class="ttc" id="agroup__flags_html_gae4f56c2a60bbe4bd2e44c5b19cbe8762"><div class="ttname"><a href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">Eigen::RowMajorBit</a></div><div class="ttdeci">const unsigned int RowMajorBit</div><div class="ttdef"><b>Definition:</b> Constants.h:68</div></div>
<div class="ttc" id="anamespaceEigen_html"><div class="ttname"><a href="namespaceEigen.html">Eigen</a></div><div class="ttdoc">Namespace containing all symbols from the Eigen library.</div><div class="ttdef"><b>Definition:</b> Core:139</div></div>
<div class="ttc" id="anamespaceEigen_html_a62e77e0933482dafde8fe197d9a2cfde"><div class="ttname"><a href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Eigen::Index</a></div><div class="ttdeci">EIGEN_DEFAULT_DENSE_INDEX_TYPE Index</div><div class="ttdoc">The Index type as used for the API.</div><div class="ttdef"><b>Definition:</b> Meta.h:59</div></div>
<div class="ttc" id="anamespaceEigen_html_a7794e77d4be556d1c965842e227bd572"><div class="ttname"><a href="namespaceEigen.html#a7794e77d4be556d1c965842e227bd572">Eigen::viewAsCholmod</a></div><div class="ttdeci">cholmod_sparse viewAsCholmod(Ref&lt; SparseMatrix&lt; Scalar_, Options_, StorageIndex_ &gt; &gt; mat)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:60</div></div>
<div class="ttc" id="anamespaceEigen_html_ac74dc920119b1eba45e9218d9f402afc"><div class="ttname"><a href="namespaceEigen.html#ac74dc920119b1eba45e9218d9f402afc">Eigen::real</a></div><div class="ttdeci">const Eigen::CwiseUnaryOp&lt; Eigen::internal::scalar_real_op&lt; typename Derived::Scalar &gt;, const Derived &gt; real(const Eigen::ArrayBase&lt; Derived &gt; &amp;x)</div></div>
<div class="ttc" id="anamespaceEigen_html_ada12cf6e1ffe8c110b175ed0e644b000"><div class="ttname"><a href="namespaceEigen.html#ada12cf6e1ffe8c110b175ed0e644b000">Eigen::viewAsEigen</a></div><div class="ttdeci">Map&lt; SparseMatrix&lt; Scalar, Flags, StorageIndex &gt; &gt; viewAsEigen(cholmod_sparse &amp;cm)</div><div class="ttdef"><b>Definition:</b> CholmodSupport.h:160</div></div>
<div class="ttc" id="anamespaceEigen_html_ae491aecf7dab66ac7e11008c5766694d"><div class="ttname"><a href="namespaceEigen.html#ae491aecf7dab66ac7e11008c5766694d">Eigen::exp</a></div><div class="ttdeci">const Eigen::CwiseUnaryOp&lt; Eigen::internal::scalar_exp_op&lt; typename Derived::Scalar &gt;, const Derived &gt; exp(const Eigen::ArrayBase&lt; Derived &gt; &amp;x)</div></div>
<div class="ttc" id="anamespaceEigen_html_ae8bb75ba4f5f30a7571146dbfa653c6d"><div class="ttname"><a href="namespaceEigen.html#ae8bb75ba4f5f30a7571146dbfa653c6d">Eigen::log</a></div><div class="ttdeci">const Eigen::CwiseUnaryOp&lt; Eigen::internal::scalar_log_op&lt; typename Derived::Scalar &gt;, const Derived &gt; log(const Eigen::ArrayBase&lt; Derived &gt; &amp;x)</div></div>
<div class="ttc" id="astructEigen_1_1NumTraits_html"><div class="ttname"><a href="structEigen_1_1NumTraits.html">Eigen::NumTraits</a></div><div class="ttdoc">Holds information about the various numeric (i.e. scalar) types allowed by Eigen.</div><div class="ttdef"><b>Definition:</b> NumTraits.h:231</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_a62d91f57b5fefafb116d3f5c1ce792a.html">Eigen</a></li><li class="navelem"><a class="el" href="dir_f84311377820247c2dbcf5d6a63ab308.html">src</a></li><li class="navelem"><a class="el" href="dir_b5a4a26970d693ae603cf11c9041c3c5.html">CholmodSupport</a></li><li class="navelem"><b>CholmodSupport.h</b></li>
    <li class="footer">Generated on Thu Apr 21 2022 13:07:49 for Eigen by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
